import request from '@/utils/request'

// 查询会员等级说明列表
export function listMemberlevel(query) {
  return request({
    url: '/member/memberlevel/list',
    method: 'get',
    params: query
  })
}

// 查询会员等级说明详细
export function getMemberlevel(id) {
  return request({
    url: '/member/memberlevel/' + id,
    method: 'get'
  })
}

// 新增会员等级说明
export function addMemberlevel(data) {
  return request({
    url: '/member/memberlevel',
    method: 'post',
    data: data
  })
}

// 修改会员等级说明
export function updateMemberlevel(data) {
  return request({
    url: '/member/memberlevel',
    method: 'put',
    data: data
  })
}

// 删除会员等级说明
export function delMemberlevel(id) {
  return request({
    url: '/member/memberlevel/' + id,
    method: 'delete'
  })
}

// 导出会员等级说明
export function exportMemberlevel(query) {
  return request({
    url: '/member/memberlevel/export',
    method: 'get',
    params: query
  })
}